Node-RED block in Snap4City Microservice library node-red-contrib-snap4city-developer is "group-remove-entity">

It allows to delete an entity into a group

Inputs

A JSON with these parameters:
groupId number
the nome id of the group
deviceId number
the delegation id of the entity to be deleted

An example of the JSON array filled with correct data for user delegation:

{
"groupId": idGroup,
"deviceId": idDevice
}
    

Outputs

Returns an object containing the deleted entity

Details

The node can receive a JSON with the parameters described in the Inputs section and with them generate the output JSON. If the values are not present in the input JSON, these are read by those in the configuration. If they are not present in either part, an error is generated for the necessary parameters.